<template>
 <div>
     动态业务
     <!-- <DataGrid :action="api"></DataGrid> -->
     <DataGrid :data="list"></DataGrid>
 </div>
</template>

<script>
import Api from "@/api/base";
 export default {
   data () {
     return {
       list:[],
       api:null,
     }
   },
   components: {
   },
   created(){
      // this.api = new Api("/api/DepartMent");
    //  this.load();
    var test={
      henq:true,
      name:"henq",
      age:18,
      hi:(n)=>{alert(n)},
      high:1.75,
      null:null,
      conditions:[1,2,3]
    }
    var list=[];
    list.push({
      name:"test",
      value:test,
      type:this.$u.type(test),
      typeof:typeof(test)
    })
    Object.keys(test).map(u=>{
      list.push({
      name:u,
      value:test[u],
      type:this.$u.type(test[u]),
      typeof:typeof(test[u])
    })
    })
    list.push({
      name:"test.test",
      value:test.test,
      type:this.$u.type(test.test),
      typeof:typeof(test.test)
    })
    console.table(list);
    this.list=list;
   },
   methods: {
     load(){   
       var paras={
         conditions:this.$u.conditions({
           base:"Table",
           status:1
         })
       }
       this.api.list(paras).then(r=>{
         this.list=r.result;
       })
     }
   }
 }
</script>

<style style="less">

 
</style>
